echo updating from svn
svn update
echo Building shared
cd shared/src
g++ -c -fPIC *.cpp
g++ -fPIC -shared *.o -o libsb-shared.so
cp *.so ../../server/src
cd ../..
echo Building server
cd server/src
g++ -c -fPIC *.cpp -I../../shared/src
g++ -fPIC *.o -lsfml-system -lsfml-network -lsb-shared -L./ -o server 
